package com.mall.db.domain;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author LSM
 * @since 2021-09-26
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("t_member_collection")
public class MemberCollection extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 会员收藏表
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 用户id
     */
    private Integer userId;

    /**
     * 商品id
     */
    private Integer pId;

    /**
     * 添加时间
     */
    @JSONField(format = "yyyy-MM-dd HH:mm:DD")
    private Date addTime;


}
